clc;
close all;

%chargement des images
image = imread('street.pgm');
%image = imread('desert.pgm');
%image = imread('mountain.pgm');

%creation de la transformation de fourier et centrage de celle-ci
image_ft = fft2(double(image));
image_ft2 = fftshift(image_ft);

%module
image_mod = log(1+abs(image_ft2));

figure, imshow(image);
title('Originale');

figure, imagesc(image_mod);
title('Module');

figure, contour(image_mod);
title('Contour');
